<style>

.table, .td, .th
{
border:1px solid green;

}
th
{
background-color:green;
color:white;
}
td
{
padding:8px;
}


.font{font-family:"Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;}
.font_size{font-size:42px; }
.a:link {color:blue; text-decoration:none}    
.a:visited {color:blue; text-decoration:none;} 
.a:hover {color:red; text-decoration:underline;}   
.a:active {color:green; text-decoration:none;} 
a:link {color:blue; text-decoration:none}    
a:visited {color:blue; text-decoration:none;} 
a:hover {color:red; text-decoration:underline;}   
a:active {color:green; text-decoration:none;}   
.style1 {font-size: 36px}
body,td,th {
	font-family:"Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
}
</style>
<form action="search.php" method="post">
<table width='993' border="0"  align="left" cellpadding="2"  cellspacing="1">
<tr><td>
<img src="6882eea copy.png" width="990" /></td></tr>
<tr><td bgcolor="#006699">
<input type="text" name="key" size="40" value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input type="submit" name="Search"  value="Search"></td></tr>
  
  <tr><td colspan="2" align="left" bgcolor="#869FFF">Choose Language :
<SELECT style="width:150px" onChange="location.href=this.options[this.selectedIndex].value" >

							<option value="english.php?language=en&sID=o1thgku70uru02d6itebfihmg3">English - Tamil</option>
							<option value="tamilsearch.php?language=tamil&sID=o1thgku70uru02d6itebfihmg3">English - Sinhala
							
						</option>
						</SELECT></td></tr>
              <tr>
                <td colspan="2">
			      <p>| <a href="home2.php" ><b>Home</b></a> | <a href="addterm.php"><b>Add Term</b></a> | <a href="Add_Suggestion.php"><b>Suggest Term</b></a> | <a href="Suggestion.php" ><b>Suggestions</b> </a> | <a href="user.php"><b>User Details</b>| <a href="check_sugges.html"><b>Forum</b></br>			    
			  <a href="A" class="a"></a></p>
		        <p><a href="B.php">A</a> </p></td></tr> 

				
  
<tr><td>

<?php 

 include_once('databaseconnection.php');
 $con = mysql_connect($host, $user, $password);
if (!$con) {
    echo "Sorry unable to connect database" . mysql_error();
}
if (!mysql_select_db($dbname)) {
    die("Cannot connect to the Database" . mysql_error($link));
}

 

$query = "SELECT * FROM terms WHERE term LIKE 'a%' or term LIKE 'A%'";   
$result = mysql_query($query);

print "<table border = 1><tr><th>term</th><th>domain</th><th>accepted_meaning</th><th>language</th><th>suggested_by</th><th>suggested_date</th><th>checked_by</th><th>accepted_date</th><th>votes</th><th>comments</th></tr>";
while ($row = mysql_fetch_array($result))
   {
  print "<tr><td>{$row['term']}</td><td>{$row['domain']}</td><td>{$row['accepted_meaning']}</td><td>{$row['language']}</td><td>{$row['suggested_by']}</td><td>{$row['suggested_date']}</td><td>{$row['checked_by']}</td><td>{$row['accepted_date']}</td><td>{$row['votes']}</td><td>{$row['comments']}</td></tr>";  
	}

print "</table>";


?>
</td></tr>
</table>
</form>



